
package br.siseventos.service;

import br.siseventos.dao.LocalDao;
import br.siseventos.model.TbLocal;
import java.io.Serializable;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;


public class LocalService extends BaseService {
    // Campos

    private LocalDao localDao = new LocalDao();

    // Construtor
    public LocalService() {
    }

    // Serviços
    @Transactional
    public Long incluir(TbLocal local) throws Exception {
        return localDao.incluir(local);
    }

    @Transactional
    public List<TbLocal> consultarTodos() throws Exception {
        return localDao.consultarTodos();
    }

    @Transactional
    public TbLocal consultar(int id) throws Exception {
        return localDao.consultar(id);
    }

    @Transactional
    public void excluir(int id) throws Exception {
        localDao.excluir(id);
    }

    @Transactional
    public void alterar(TbLocal local) throws Exception {
        localDao.alterar(local);
    }
}
